function r = cols(x)

% COLS  number of columns of the matrix x.
r = size(x);
r = r(2);
